<?php
	include_once('config.php');
	include_once('SystemOneAPI.php');
	$api_service_list = "https://202.92.144.6/api/ocm/";
	$api = new SystemOneAPI($api_service_list, API_USERNAME, API_PASSWORD);
	
	$enlist_params = array( );
	$enlist_params['courseCode'] = 'NASC3';
	$enlist_params['sectionName'] = 'ST1';
	echo $enlist_params['courseCode'] ;
	$result = $api->execute('enlist', $enlist_params);
	
	

	/*
	if ($result) {
		$_SESSION['sessionInfo'] = $api->getSessionInfo();
		$api->close();
		header('Location: main.php');

	} else {
		$error_message = $api->getLastError();
		$api->close();
		echo $error_message;
	}
	*/
?>